package org.example.Service;

import org.example.mapper.UserMapper;
import org.example.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService{
    @Autowired
    private UserMapper userMapper;
    @Override
    public List<User> selectUsers() {
        return userMapper.selectUsers();
    }

    @Override
    public User selectUserByID(Integer id) {
        return userMapper.selectUserByID(id);
    }

}
